package com.mspbots.core.wise.model;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mspbots.core.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * com.mspbots.core.wise.model.TenantUserWorkSchedule
 *
 * @author Jason
 * @date 2020/4/29
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tenant_user_work_schedule", autoResultMap = true)
public class TenantUserWorkSchedule extends BaseEntity {

    private Long userId;
    private Long tenantId;
    private String dayOfWeek;
    @TableField(value = "begin_time", updateStrategy = FieldStrategy.IGNORED)
    private LocalTime beginTime;
    @TableField(value = "end_time", updateStrategy = FieldStrategy.IGNORED)
    private LocalTime endTime;
    private Boolean dayOff;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer sort;


}
